//
//  IManager+NearbyMerchants.h
//  RocketProject
//
//  Created by chen jiedan on 13-5-28.
//  Copyright (c) 2013年 Rocket. All rights reserved.
//

#import "IManager.h"

@class CLLocation;

typedef enum {
    kMerchantsType_Food = 1, //购物
    kMerchantsType_Entertainment = 2, //休闲娱乐
    kMerchantsType_Hotel = 3, //酒店
    kMerchantsType_Shopping = 4, //购物
    kMerchantsType_Assis    = 5, //商务助理
    kMerchantsType_Drive   = 6,
    kMerchantsType_Scene   = 7
}kMerchantsType;

typedef enum {
    kSortedType_Default = 0,
    kSortedType_Price   = 1,
    kSortedType_Distance= 2,
    kSortedType_PriceAsc= 3,
    kSortedType_PriceDes= 4,
    kSortedType_TotalAsess= 5,//总体评价
    kSortedType_Env= 6,//按环境评价
    kSortedType_Service= 7//按服务评价


}kMerchantsSortedType;

typedef enum {
    KMerchantListType_Distance = 1,
    KMerchantListType_District = 2,
    KMerchantListType_Discount = 3,

}KMerchantListType;

@interface IManager (NearbyMerchants)



-(int64_t)requestNearbyMerchantsType:(NSString *)merchantsType
                          inDistance:(NSInteger)distance
                     withSoretedType:(kMerchantsSortedType)sortedType
                             forPage:(NSString *)page
                              withRn:(NSString *)rn
                              inCity:(NSString *)cityID
               withMerchantsListType:(KMerchantListType)merchantListType
                      withDistrictID:(NSString *)districtID
                        withLocation:(CLLocation *)location
                        withDelegate:(id<IManagerDelegate>)delegate;

-(int64_t)requestNearbyDiscountsType:(NSString *)discountsType
                          inDistance:(NSInteger)distance
                     withSoretedType:(kMerchantsSortedType)sortedType
                             forPage:(NSString *)page
                              withRn:(NSString *)rn
                              inCity:(NSString *)cityID
                        withDelegate:(id<IManagerDelegate>)delegate;
@end
